#ifndef __devinfo_h__
#define __devinfo_h__ 1
#include "cJSON.h"

#define DEV_TYPE_TV     "TV"

typedef struct{
    char ifname[16];
    char ip[32];
    char mac[32];
    char dev_type[16];//tv,onu,...
    int is_wifi;
    char mem[64];
    char cpu[64];
    char factory[64];
    char model[64];
    char sw_version[64];
    char osType[64];
    char osVersion[64];
    char upTime[64];
    char insertTime[64];
}DevInfo_t;

void load_devinfo(DevInfo_t *devinfo);
cJSON* devinfo2cjson(DevInfo_t* devinfo, cJSON *root);
#endif